package com.hxd.mall.injector.modules

import com.hxd.mall.injector.scope.ActivityScope
import com.hxd.mall.module.product.home.HomeFragment
import com.hxd.mall.module.product.home.HomePresenter
import com.hxd.mall.module.product.home.IHomePresenter
import com.hxd.mall.module.product.home.IHomeView
import com.hxd.mall.module.usercenter.fragment.PageFragment
import com.hxd.mall.module.usercenter.order.IOrderQueryPresenter
import com.hxd.mall.module.usercenter.order.IOrderQueryView
import com.hxd.mall.module.usercenter.order.OrderQueryPresenter
import dagger.Binds
import dagger.Module

/**
 * Created by qishuai on 2018/7/30.
 */
@Module
abstract class PageFragmentFragmentModule {

    @Binds
    internal abstract fun bindView(pageFragment: PageFragment): IOrderQueryView

    @ActivityScope
    @Binds
    abstract fun providePagePresenter(presenter: OrderQueryPresenter): IOrderQueryPresenter
}